package chapter8.poly_.detail;
//属性没有重写之说
//属性根据编译类型
public class ployDetail02 {
    public static void main(String[] args) {
        Base sub = new Sub();
        System.out.println(sub.count);
    }
}
class Base{
    int count = 10;
}
class Sub extends  Base{
    int count = 20;
}
